<template>
	<view class="customer">
		<view>
			客服电话：{{phone}}
		</view>
		<u-button custom-style="marginTop: 100rpx" type="primary" @click="onCall">拨打电话</u-button>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				phone: ''
			}
		},
		onLoad(e) {
			this.phone = e.value
		},
		methods: {
			onCall() {
				uni.makePhoneCall({
					phoneNumber: this.phone,
				})
			}
		}
	}
</script>

<style lang="scss">
	.customer {
		padding: 100rpx;
		background-color: #f5f5f5;
	}
</style>